<template>
  <div class="layout">
    <footer>
      <router-link exact-active-class="active" to="/">
        <span class="fa fa-home"></span><p>首页</p></router-link
      >
      <router-link exact-active-class="active" to="/newview">
        <span class="fa fa-hacker-news"></span><p>最新</p></router-link
      >
      <router-link exact-active-class="active" to="/classfiy">
        <span class="fa fa-podcast"></span><p>分类</p></router-link
      >
      <router-link exact-active-class="active" to="/mycenter">
        <span class="fa fa-commenting"></span><p>我的</p></router-link
      >
    </footer>
    <!-- <keep-alive><router-view /></keep-alive> -->
    <router-view></router-view>
  </div>
</template>
<style lang="less" scoped>
@import "./css/varaible.less";
.layout {
  // padding: 0 10px;
  footer {
    z-index: 999;
    padding: 0 15px;
    width: 100%;
    height: 70px;
    display: flex;
    position: fixed;
    left: 0;
    bottom: 0;
    background-color: @backColor;
    align-items: center;
    justify-content: space-between;
    a{
      text-align: center;
      color: #B3B3B3;
      p{
        font-size: 14px;
      }
      span{
        font-size: 20px;
      }
    }
  }
  .active {
    color: @color;
  }
}
</style>